import http from '@/utils/request'

export function downloadFileAPI(url: any) {
  return http({
    url: url,
    method: 'post',
    data: {},
    responseType: 'blob'
  })
}

/**
 * 通过adminFile/down/${id}下载文件接口
 * 后期使用 暂用 downloadFileAPI
 */
export function adminFileDownByUrlAPI(url: any) {
  return http({
    url: url,
    method: 'post',
    responseType: 'blob'
  })
}
